export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

export interface ImgsData {
  id?: number
  imgName?: string
  imgUrl?: string
  createTime?: string
  updateTime?: string
  spuId?: number
  name?: string
  url?: string
}

export interface HasImgsData extends ResponseData {
  data: ImgsData[]
}

export interface HasProductData extends ResponseData {
  data: ProductData[]
}

export interface ProductData {
  id?: number | string
  createTime?: string
  updateTime?: string
  spuId?: number | string
  baseSaleAttrId: number | string
  saleAttrName: string
  spuSaleAttrValueList: spuSaleAttrList
  flag?: boolean
  saleAttrValue?: string
}

export interface ProductAttrValueData {
  id?: number | string
  createTime?: string
  updateTime?: string
  spuId?: number | string
  baseSaleAttrId: number | string
  saleAttrValueName: string
  saleAttrName?: string
  isChecked?: string
}

export type spuSaleAttrList = ProductAttrValueData[]
